﻿using System.Collections.Generic;

namespace PSatSimCom.RandomGenerators
{
    class StringRandom : IRandomize
    {
        private readonly List<string> _strings;

        public StringRandom(IEnumerable<string> strings)
        {
            _strings = new List<string>(strings);
        }

        public string Get()
        {
            var rand = RandomSingleton.Rand.Next(_strings.Count);
            return _strings[rand];
        }
    }
}
